package packets.s2cpackets;

import entities.Entity;
import packets.SPacket;

public class S0x21 extends SPacket {
	/**
	 * Note, this will not update the entity state!
	 */
	public S0x21(Entity entity, byte dX, byte dY, byte dZ) {
		super(0x21);
		addInt(entity.geteid());
		add(dX);
		add(dY);
		add(dZ);
		
		//TODO Fix these?
		add((byte) entity.getYaw());
		add((byte) entity.getPitch());
	}

}
